<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7-dist/css/bootstrap.css">
    <link rel="stylesheet" href="/static/css/myStyle.css">
</head>
<body>
<div class="container" style="margin-top: 100px;">
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-5">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">用户登录</h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post" novalidate>
                        {% csrf_token %}
                        <div class="form-group">
                            <label for="{{ loginForm_obj.username.id_for_label }}" class="col-sm-2 control-label">
                                {{ loginForm_obj.username.label }}</label>
                            <div class="col-sm-10">
                                {{ loginForm_obj.username }}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label disabled"></label>
                            <div class="col-sm-10">
                                <span class="myRed">{{ loginForm_obj.username.errors.0 }}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="{{ loginForm_obj.password.id_for_label }}" class="col-sm-2 control-label">
                                {{ loginForm_obj.password.label }}</label>
                            <div class="col-sm-10">
                                {{ loginForm_obj.password }}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label disabled"></label>
                            <div class="col-sm-10">
                                <span class="myRed">{{ loginForm_obj.password.errors.0 }}</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label disabled"></label>
                            <div class="col-sm-10">
                                <span class="myRed">{{ error }}</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <input type="submit" class="btn btn-primary btn-group-justified" value="登录">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/js/jquery.js"></script>
<script src="/static/plugins/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</body>
</html>